﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace MYData.Entity.DTO.ApiEntity.Input
{
    /// <summary>
    /// 添加模板科目DTO(关系表添加Dto)
    /// </summary>
    public class TemplateSubjectItemInput_Dto
    {
        /// <summary>
        ///经费模板Id
        /// </summary>
        [Display(Name = "经费模板Id")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string fundtemplateId { get; set; }

        /// <summary>
        ///经费科目类型Id
        /// </summary>
        [Display(Name = "经费科目类型Id")]
        [MaxLength(64)]
        [Column(TypeName = "bool")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public bool supportingBudgetTypeId { get; set; }

        /// <summary>
        ///经费科目Id
        /// </summary>
        [Display(Name = "经费科目Id")]
        [MaxLength(1000)]
        [Column(TypeName = "nvarchar(1000)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string supportingBudgetId { get; set; }


    }
  
    public class UpdatefundingItem_dto:TemplateSubjectItemInput_Dto
    {
        /// <summary>
        ///经费配套模板与经费预算科目关系表主键
        /// </summary>
        [Key]
        [Display(Name = "经费配套模板与经费预算科目关系表主键")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string Id { get; set; }
    }

}
